package com.busines.vo;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

public class RegistVo {

	@NotBlank(message="注册名不能为空")
	private String name;
	
	@NotBlank(message="密码不能为空")
	private String password;
	
	@NotNull(message="年龄不能为空")
	@Min(value=0,message="年龄不能小于0")
	@Max(value=200,message="你要成神仙啊")
	private Integer age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
	
	
}
